const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 快捷访问到token
  username: state => state.user.userInfo.username, // 快捷访问到用户名
  userId: state => state.user.userInfo.userId, // 快捷访问到用户的id
  staffPhoto: state => state.user.userInfo.staffPhoto, // 快捷访问到用户的头像
  companyId: state => state.user.userInfo.companyId, // 快捷访问到公司id
  routes: state => state.permission.routes,
  points: state => state.user.userInfo.roles.points // 快捷访问到员工拥有的权限点
}
export default getters
